<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Treaty extends Model
{
    protected $table = 'c_treaties';

    /**
     * @return mixed
     * 获取用户协议
     */
    public function getInfo()
    {
        return $this->select(['clause'])->first()->clause ?? '';
    }
}
